
	<!DOCTYPE html>

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link href="__PUBLIC__/Theme3/css/font-awesome.min.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0 user-scalable=no">
<meta name="format-detection" content="telephone=no">
<script language="javascript" src="__PUBLIC__/Theme3/js/jquery-1.11.1.min.js"></script>
<script language="javascript" src="__PUBLIC__/Theme3/js/jquery.gcjs.js"></script>
<!--<link rel="stylesheet" type="text/css" href=".__PUBLIC__/Theme3/addons/sz_yi/template/mobile/default/static/css/style_red.css">-->



<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/base.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/jquery-weui.min.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/weui.min.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/style.css">
<!--new add start for style1 2016.09.09-->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/font-awesome.min(1).css">

<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/style1.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/main.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/iconfont.css">

<script language="javascript" src="__PUBLIC__/Theme3/js/mui.min.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/mui.min.css">
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Theme3/css/icons-extra.css" />

<!--new add end for style1-->
<script>window.PointerEvent = undefined</script></head>
<body>

<nav class="mui-bar mui-bar-tab">
			<a id="editinfo" href="__APP__/Index/index" class="mui-tab-item">
				<span class="mui-icon mui-icon-home"></span>
				<span class="mui-tab-label">首页</span>
			</a>
			<a id="register"  href="__APP__/User/add_user"  class="mui-tab-item" href="#tabbar-with-chat">
				<span class="mui-icon mui-icon-extra mui-icon-extra-addpeople"></span>
				<span class="mui-tab-label">注册</span>
			</a>
			<a id="tuandui"  href="__APP__/User/team" class="mui-tab-item mui-active" href="#tabbar-with-contact">
				<span class="mui-icon mui-icon-extra mui-icon-extra-peoples"></span>
				<span class="mui-tab-label">团队</span>
			</a>
			<a id="shezhi"  href="__APP__/User/UserSet" class="mui-tab-item" href="#tabbar-with-map">
				<span class="mui-icon mui-icon-gear"></span>
				<span class="mui-tab-label">设置</span>
			</a>
		</nav>
  
<script>
	
	
		$("#editinfo").click(function(){
			location.href="__APP__/Index/index";
		})
		$("#register").click(function(){
			location.href="__APP__/User/add_user";
		})
		$("#tuandui").click(function(){
			location.href="__APP__/User/team";
		})
 		 $("#shezhi").click(function(){
			location.href="__APP__/User/UserSet";
		})
		
		
		
	</script>
<script>

var page = 1;
mui.init({
  pullRefresh : {
    container:"#pullrefresh",//下拉刷新容器标识，querySelector能定位的css选择器均可，比如：id、.class等
	down:{
		callback :aaa //必选，刷新函数，根据具体业务来编写，比如通过ajax从服务器获取新数据；
		},
	up: {
		contentrefresh: '正在加载...',
		contentnomore:'没有更多数据了',
		callback: bbb
		}
				
  }
});
		
		function aaa(){
            mui('#pullrefresh').pullRefresh().endPulldownToRefresh();
        }
		
        function bbb(){
		
				mui.ajax("teamdata", {
					type: "get",
					dataType: "json",
					data:{
							page:page
						},
						success: function(data){
							 //将获取到的数据动态赋值给列表，假设scroller为滚动容器
							 //如果数据不到一页，显示“没有更多数据了”,关闭上拉功能
							 //scroller.endPullupToRefresh(true);
							 //scroller.querySelector(".mui-pull-bottom-pocket .mui-pull-caption").innerHTML = "没有更多数据了";
							 //如果对于关闭的上拉功能，可以通过以下语句重置上拉加载功能。
							 //mui('#pullrefresh').pullRefresh().refresh(true);
							 if(data.length==0){
								mui('.mui-scroll-wrapper').pullRefresh().endPullupToRefresh(true);
							 }
							 else{
								for (var i=0;i<data.length; i++) {
									$('#con').append(' <div id="container" style="width: 100%;height: auto;"><div class="team_list"><div class="info">昵称：'+data[i]['truename']+'<br><span>手机号：'+data[i]['loginname']+'</span><br><span>等级：'+data[i]['levelname']+'</span></div><div class="num2"><img src="/uploads/'+data[i]['wximg']+'"  width="80" height="80"/></span></div><div class="f-cb"></div></div></div>')
								}
								page+=1;
								mui('.mui-scroll-wrapper').pullRefresh().endPullupToRefresh(false);
							 }
						//	mui('.mui-scroll-wrapper').pullRefresh().refresh(true);
						}
				});

        }

		
</script>


<title>我的团队</title>

<style type="text/css">
.mui-pull-bottom-pocket{background:#ddd;}
.mui-pull-caption{line-height:20px;display:block;}
        .team_list_head {
            height: 46px;
            width: 100%;
            background: #fff;
            padding: 13px 3% 10px 3%;
            border-bottom: 1px solid #eaeaea;
        }
        .team_list_head .info {
            height: 20px;
            float: left;
            font-size: 14px;
            color: #666;
            line-height: 20px;
            text-align: left;
        }
        .team_list_head .num2 {
            height: 20px;
            float: right;
            text-align: right;
            font-size: 14px;
            color: #666;
            line-height: 20px;
            font-size: 14px;
            color: #989898;
        }
        .team_list {
            height: 104px;
            width: 100%;
            padding: 15px 3%;
            background: white;
            border-bottom: 1px solid #eaeaea;
        }
        .team_list .img {
            width: 16%;
            height: 40px;
            float: left;
            text-align: left;
        }
        .team_list .img img {
            height: 40px;
            width: 40px;
        }
        .team_list .info {
            height: 40px;
            width: 47%;
            float: left;
            font-size: 14px;
            color: #666;
            line-height: 25px;
            text-align: left;
        }
        .team_list .info span {
            font-size: 12px;
            color: #989898;
        }
        .team_list .num2 {
            height: 40px;
            width: 49%;
            float: right;
            text-align: right;
            font-size: 14px;
            color: #666;
            line-height: 20px;
            margin-right: 10px;
        }
        .team_list .num2 span {
            font-size: 12px;
            color: #989898;
        }
		.team_list_head_tj {
    height: auto;
    width: 100%;
    background: #fff;
    padding: 13px 3% 10px 3%;
    border-bottom: 1px solid #eaeaea;
    word-wrap: break-word;
    overflow: hidden;
	color:#989898;
}
.tjmcenter{text-align:center;}
  
  .mui-scroll-wrapper{    top: 401px;    padding-bottom: 100px;}
  .mui-pull-bottom-pocket{z-index:99;}
</style>

<div id="container">

	
<div class="page_topbar">
    <a href="javascript:;" class="back" onclick="javascript:location.href='/'"><i class="fa fa-angle-left"></i></a>
    <div class="title">我的团队(<{$allcount}>)</div>
	
</div>


<if condition="$Sys_systemName[tjcheckcode] eq 1">
    <div class="team_list_head_tj">
        <div class="">推荐链接（点击复制）</div>
        <div class="" id="copy" ><div id="article" style="font-size: 16px;text-align: left;padding: 0px 15px;" ><{$HttpUrl}></div></div>
    </div>
    <div class="team_list_head_tj" >
	
        <div class="">推荐二维码（长按保存）</div>
      <div class="img" style="text-align:center;">
          <a href="<{$tjimg}>"><img src="<{$tjimg}>" /></a>
      
      </div>
	</div>
</if>

<div id="pullrefresh" class="mui-content mui-scroll-wrapper">

    <div class="team_list_head">
        <div class="info">成员信息</div>
        <div class="num2">一星及一星以上人数:<{$xingcount}></div>
    </div>
	
    <div class="hui-media-list mui-scroll">
        <ul id="con">   
		
	<foreach name="invite_list" item="user">
	
	   <div id="container" style="width: 100%;height: auto;">
        <div class="team_list">
           
            <div class="info">
                昵称：<{$user.truename}>

                <br>
                <span>手机号：<{$user.loginname}></span>
                <br>
                <span>等级：<{$user.levelname}></span>
            </div>
                    <div class="num2"><img src="/uploads/<{$user.wximg}>"  width="80" height="80"/></span></div>
            <div class="f-cb"></div>
        </div>
    </div>
    
	</foreach>
        </ul>
    </div>
</div>
 
 
	
	<script>
		
		mui("#copy").on('tap', '#article', function(event){
			copyArticle();
		});
	function copyArticle(){
	
        var Url2=document.getElementById("article").innerText;
        var oInput = document.createElement('input');
        oInput.value = Url2;
        document.body.appendChild(oInput);
        oInput.select(); // 选择对象
        document.execCommand("Copy"); // 执行浏览器复制命令
        oInput.className = 'oInput';
        oInput.style.display='none';
        alert('复制成功');
	}
	//document.getElementById('copy').addEventListener('click', copyArticle, false);
	</script>
	


</body></html>


